package com.fosss.horse;

/**
 * 马踏棋盘算法
 */
public class HorseChessBoardAlgorithm {
    public static void main(String[] args) {
        System.out.println("开始执行。。。。");
        HorseChessBoard horseChessBoard = new HorseChessBoard(8, 8);

        long startTime = System.currentTimeMillis();
        horseChessBoard.horseChessBoardGo(3,0,1);//初始位置为第一步，x,y为初始位置的横纵坐标
        long endTime = System.currentTimeMillis();
        System.out.println("该算法耗费"+(endTime-startTime)+"毫秒");
        horseChessBoard.showChessboard();

    }
}


















